package com.zx.freeapi.controller;

import com.zx.freeapi.model.entity.InterfaceInfo;
import com.zx.freeapi.service.InterfaceInfoService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/InterfaceInfo")
@Slf4j
public class InterfaceInfoController {
    @Resource
    private InterfaceInfoService interfaceInfoService;

//    测试查询全部
    @GetMapping("/all")
    public List<InterfaceInfo> testSelectAll(){
        return interfaceInfoService.list();
    }
}
